{extend name="Public:base"/}

{block name="main"}
<div class="box-info">
    <form id="myform" action="{:U('Kefu/add')}" method="post">

        <div class="form-group row">
            <label class="col-sm-2 form-control-label">客服名称</label>
            <div class="col-xs-4">
                <input type="text" class="form-control" name="name"/>
            </div>
        </div>

        <div class="form-group row">
            <label class="col-sm-2 form-control-label">客服类型</label>
            <div class="col-xs-4">
                <select class="form-control" name="type">
                    <option value="1">QQ</option>
                    <option value="2">旺旺</option>
                    <option value="3">Skype</option>
                </select>
            </div>
        </div>

        <div class="form-group row">
            <label class="col-sm-2 form-control-label">ID或代码</label>
            <div class="col-xs-4">
                <textarea  id="code" name="code" rows="3" cols="40" class="form-control"></textarea>
            </div>
        </div>

        <div class="form-group row">
            <label class="col-sm-2 form-control-label">状态</label>
            <div class="col-xs-4">
                <input type="radio" name="status" value="1" checked="checked"/>启用
                <input type="radio" name="status" value="0" />禁用
            </div>
        </div>

        <div class="form-actions">
            <button type="submit" class="btn btn-primary ajax_form_add">提交</button>
            <button type="button" class="btn btn-danger" onclick="javascript:history.back(-1);return false;">返回</button>
        </div>
    </form>
</div>
{/block}